package com.itheima.api.user;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.mapper.user.UmsMemberLevelMapper;
import com.itheima.vo.pojo.UmsMemberLevel;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.List;


@DubboService
public class UmsMemberLevelServiceImpl extends ServiceImpl<UmsMemberLevelMapper, UmsMemberLevel> implements UmsMemberLevelService  {

    /*
查询所有会员等级
* */
    @Override
    public List<UmsMemberLevel> getList(Integer defaultStatus) {
        LambdaQueryWrapper<UmsMemberLevel> lqw=new LambdaQueryWrapper<>();
        lqw.eq(UmsMemberLevel::getDefaultStatus,defaultStatus);
        return this.list(lqw);
    }
}
